home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CDPD Public Domain Collection for CDTV 4
/
CDPD_IV.bin
/
e
/
mailinglists
/
amigae.0793july.archive
/
000113_crash!cup.port….com!Politikill_Fri, 30 Jul 93 13:56:33 PST.msg
< prev
next >
Wrap
Internet Message Format
|
1994-05-26
|
2KB
Received: by bkhouse.cts.com (V1.16/Amiga)
id AA00000; Fri, 30 Jul 93 13:56:33 PST
Received: from nova.unix.portal.com by crash.cts.com with smtp
(Smail3.1.28.1 #15) id m0oLzoB-0000Z6C; Fri, 30 Jul 93 12:08 PDT
Received: by nova.unix.portal.com (5.65b/4.1 1.386)
id AA22646; Fri, 30 Jul 93 12:11:59 -0700
Received: from hobo by portal.unix.portal.com (1.689)
id AA29900; Fri, 30 Jul 93 12:11:58 -0700
Received: by hobo.corp.portal.com (4.1/4.0.3 1.68)
id AA23358; Fri, 30 Jul 93 12:11:56 PDT
Return-Path: <Politikill@cup.portal.com>
Lines: 44
Date: Fri, 30 Jul 93 12:11:55 PDT
Message-Id: <9307301211.3.12188@cup.portal.com>
X-Origin: The Portal System (TM)
From: Politikill@cup.portal.com
To: AmigaE@bkhouse.cts.com
Subject: Re: MidStr
>Check that you have got the parameters to InStr the right
>way round - all languages order these things differently
>and I can never remember which way round they go.
>
>Next insert a WriteF('\d\n',endpos) after the endpos
>assignment. If there is no \n in the buffer, endpos-pos
>will be a negative number and could cause MidStr to return
>all the characters it finds.
>
>Also check that the parameters to MidStr are right. I once
>got the parameters to StrCpy the wrong way round - I
>thought it would be (source,dest) but it isn't. Took me
>the best part of a day to figure that bug out.
>
>Some E string functions require you to use E strings -
>i.e. declare them as s[80]:STRING or something like that.
>I would guess that this is the most likely problem.
>Remember that if you do DEF a,b:STRING then a is a LONG
>and b is a STRING. A similar statement in Pascal would
>make both variables strings - that's a feature of E which
>has caught me out many a time.
>
>Hope this helps :-)
>
>Dave.
Thanx....I di finally get this about 10 minutes after the mail went out:-)
I stared REAL hard at it, and finally said "Well, if StringF needs it, might
as well try definging them as strings for MidStr()..." Now I am having
problems somewhere in my saving routines....gotta go stare at that now!
/ / /
/_/_/iZ
MODULE 'WiZkId'
PROC main()
wizkid.inetaddress:='Politkill@cup.portal.com'
wizkid.realname:='Jeffrey J Peden ]['
ENDPROC
*-- GammaTag Version 2.8 --*
*-- Morality is a private and costly luxury.